package summer_vacation.yangyiqing.m201508;

import java.util.Arrays;

/**
 * Created by Administrator on 2015/8/17 0017.
 */
public class Java_9 {
    public static void main(String[] args){
        int []nums={55,23,69,46,33,21,2,98};
        System.out.println("这是排序前的顺序：");
        for(int i=0;i<=7;i++){
            System.out.printf(" "+nums[i]);
        }
        Arrays.sort(nums);
        System.out.println(" ");
        System.out.println("这是排序后的顺序：");
        for(int i=0;i<=7;i++) {
            System.out.printf(" " + nums[i]);
        }
    }
}
